package com.rd.student.ruanjian.class4.zhouzihe.day0803;



public class Cat extends Animal {

    String name;
    String eyeColor;

    public Cat(String name,String eyeColor) {
        this.name = name;
        this.eyeColor = eyeColor;

    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    public String getEyeColor() {
        return eyeColor;
    }

    public void setEyeColor(String eyeColor) {
        this.eyeColor = eyeColor;
    }

    @Override
    public void enjoy() {
        System.out.println("猫笑");
    }

    @Override
    public void voice() {

    }

    @Override
    public String toString() {
        return "Cat{" +
                "eyeColor='" + eyeColor + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
